Home

Operator Usage

Name

sdisplay-patch

Description

sdisplay-patch[width] input-seq
convert an input sequence of kets into a rectangular grid with the given width
if the sequence is of superpositions instead of kets, then behaviour is currently undefined.
the grid elements are left justified, and take into account the max grid element length


Examples

-- just an abstract example:
sdisplay-patch[3] ssplit |ABCDEF>
    width:  3
    height: 2
    A  B  C
    D  E  F

-- and another:
sdisplay-patch[3] ssplit[" "] |one two three four five six>
    width:  3
    height: 2
    one   two   three
    four  five  six


See also

Operator type

sequence compound